package com.gzy.cbrsystem.shimian.action;

import com.gzy.cbrsystem.shimian.dao.ShimianZdbs;
import com.gzy.cbrsystem.shimian.service.CaseReasoning;
import com.opensymphony.xwork2.ActionSupport;

public class FindShimianZdbsById extends ActionSupport {
	protected String fanliId;
	protected CaseReasoning caseReasoning;
	
	protected ShimianZdbs shimianZdbs;
	
	public String getFanliId()
	{
		return this.fanliId;
	}
	public void setFanliId(String fanliId)
	{
		this.fanliId=fanliId;
	}
	public void setShimianZdbs(ShimianZdbs shimianZdbs) {
		this.shimianZdbs = shimianZdbs;
	}

	public ShimianZdbs getShimianZdbs() {
			return this.shimianZdbs;
	}
	public void setCaseReasoning(CaseReasoning caseReasoning) {
		this.caseReasoning = caseReasoning;
	}

	public CaseReasoning getCaseReasoning() {
		return this.caseReasoning;
	}
	public String execute() throws Exception {
		ShimianZdbs result=this.caseReasoning.findShimianZdbsByID(fanliId);
		if(result == null) return ERROR;
		this.setShimianZdbs(result);
		return SUCCESS;
	}
}
